home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Education / PC-SiG's World of Education.iso / run / 2646 / decay.eka < prev    next >
Text File  |  1992-03-23  |  396b  |  12 lines

  1. ; This problem demonstrates how to solve a user-defined
  2. ; transcendental function of time.
  3. ; The problem is to calculate MassUnknown, the mass of
  4. ; 100 kg uranium 238 after one million years.
  5. ; Also calculate how long it would take to decay to 1 kg.
  6.  
  7.  Mass(Years) := InitialMass * 2^(-Years/HalfLife)
  8.  InitialMass = 100
  9.  HalfLife = 10e6
  10.  MassUnknown = Mass(1e6)
  11.  1 = Mass(TimeUnknown)
  12.